//
//  HomeNewsCell.m
//  FinancialProduct
//
//  Created by Stella on 2017/8/24.
//  Copyright © 2017年 maq. All rights reserved.
//

#import "UserModel.h"
#import "HomeNewsCell.h"

@implementation HomeNewsCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}
-(void)setInfoDic:(NSDictionary *)infoDic{
    self.name.text=infoDic[@"ProductName"];
    self.date.text=infoDic[@"PurchaseOpenDay"];
    
    if ([infoDic[@"ProductType"] isEqualToString:@"B"]||[infoDic[@"ProductType"] isEqualToString:@"C"]) {
        self.dateLabel.text=@"产品成立日";
    }else{
        self.dateLabel.text=@"产品开放日";
    }
    
}
- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
